import _Fetch from '@/server/Fetch'
import { API_POST_CONSULTING_LIST, API_POST_TAGS_LIST } from '@/api/consulting/get_consulting_data'
import { API_POST_MY_TOGGLE_LICK } from '@/api/user/getMyCollect'

export async function get_consulting_data(params) {
  return await _Fetch(API_POST_CONSULTING_LIST, {
    labelId: params.tagId,
    pageSize: params.pageSize,
    pageNum: params.pageNum,
    keyword: params.value,
  })
}

export async function isLike_api(id: number, type: number) {
  return await _Fetch(API_POST_MY_TOGGLE_LICK, {
    id,
    type,
  })
}
export async function get_tags_list_api() {
  return await _Fetch(API_POST_TAGS_LIST)
}
